<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
* @property int $id 
* @property int $uid 用户ID
* @property int $main_uid 主账号ID
* @property int $tag_group_id 标签组ID，对应ch_smart_tag.id
* @property int $module 标签模块名称：	
1 = 行为标签  2= 生命周期标签 3 =客户价值标签 4 = 时间进程标签 5= 自定义标签
* @property int $sub_type 类型：0=社群行为 1=客户行为
* @property int $enable 启用状态：0=禁用 1=启用
* @property int $corp_id 企业ID
* @property string $corp_tag_wxids 企业标签微信ID
* @property string $robot_ids 机器人微信ID
* @property string $extra 配置信息
* @property \Carbon\Carbon $created_at 创建时间
* @property \Carbon\Carbon $updated_at 更新时间
*/
class ChSmartTagRule extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_smart_tag_rule';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'main_uid', 'tag_group_id', 'module', 'sub_type', 'enable', 'corp_id', 'corp_tag_wxids', 'robot_ids', 'extra', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'main_uid' => 'integer', 'tag_group_id' => 'integer', 'module' => 'integer', 'sub_type' => 'integer', 'enable' => 'integer', 'corp_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
